# 选择 Tomcat 镜像
FROM tomcat:7.0-alpine
RUN rm -rf /usr/local/tomcat/webapps/*
COPY tianqiao-1.0-SNAPSHOT.war /usr/local/tomcat/webapps/tianqiao.war

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# 暴露容器端口
EXPOSE 8080

# 启动容器
CMD ["catalina.sh", "run"]